import 'package:bloc/bloc.dart';

///简化Bloc的使用，继承自该Bloc的子Bloc发出的Event即State
abstract class EventBloc<T> extends Bloc<T, T> {
  @override
  Stream<T> mapEventToState(T event) async* {
    yield event;
  }
}
